package domain;

import java.util.ArrayList;
import java.util.List;

public class Professor implements Accountable {

	private String name;
	private String registration;
	private List<Class> classes;

	public Professor(String name, String registration) {
		this.setName(name);
		this.setRegistration(registration);
		this.setPresentables(new ArrayList<Class>());
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getRegistration() {
		return registration;
	}

	public void setRegistration(String registration) {
		this.registration = registration;
	}

	@Override
	public List<Class> getPresentables() {
		return classes;
	}
	
	@SuppressWarnings("unchecked")
	public void setPresentables(List<? extends Presentable> presentables) {
		this.classes = (List<Class>) presentables;
	}

}
